@extends('layout/default')

@section('content')
<div class="container ">
    <div clas="row ">
        <form method="post" action="{{URL::to('fight/join')}}">
            <input type="hidden" name="_token" value="{{csrf_token()}}"/>
            <input type="hidden" name="FAFID" value="{{$data->FID}}"/>
            <input type="hidden" name="FACustomerID" value="{{Session::get('customer_id')}}"/>
            <div class="col-xs-12" >
                标题：{{$data->FTitle}}
            </div>       
            <div class="col-xs-12" >
                时间：{{$data->FBeginAt}}
            </div>
            <div class="col-xs-12" style="margin-top: 1em">
                留言：{{$data->FMessage}}
            </div>
            <div class="col-xs-12">
                联系人：{{$data->FLinkman}}
            </div>
            <div class="col-xs-12">
                联系电话：{{$data->FMobile}}
            </div>
            <div class="col-xs-12">
                留言：<textarea style="width: 100%;height: 100px;" name="FAMessage"></textarea>
            </div>
            @if($canJoin==0)
            <div class="col-xs-12">
                <button type="submit" class="btn btn-default">申请加入</button>
            </div>
            @else
            <div class="col-xs-12">
                <button type="button" class="btn btn-primary col-xs-12" style="height: 3em;margin-top: 3em" disabled="">您已经申请加入</button>
            </div>
            @endif
        </form>
    </div>

</div>
@endsection
